package com.bcinfo.iccard.model;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class ComboCard  implements Serializable{
    /**  
     * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
     */
    private static final long serialVersionUID = -8403259165299089366L;

    private Long comboCardId;

    private String comboCardName;

    private String comboCardIntro;

    private Short comboCardCheckStatus;

    private Integer comboCardTotalCopies;   //总份数

    private Integer comboCardSurplusCopies; // 剩余份数

    private Date begintime;

    private Date endtime;

    private Float comboCardOrignalPrice;    //套餐原总价格

    private Float comboCardFavorablePrice;//套餐优惠总价格

    private Float comboCardSalePrice; //套餐销售总价格

    private Float totalDiscount; //总折扣

    private Float comboCardRaisePriceRate; //套餐加价百分比

    private Boolean isDelete;
    
    private Date createtime;

    private List<ComboCardProductDetail> comboCardProductDetails ;
    
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    
    public Long getComboCardId() {
        return comboCardId;
    }

    public void setComboCardId(Long comboCardId) {
        this.comboCardId = comboCardId;
    }

    public String getComboCardName() {
        return comboCardName;
    }

    public void setComboCardName(String comboCardName) {
        this.comboCardName = comboCardName == null ? null : comboCardName.trim();
    }

    public String getComboCardIntro() {
        return comboCardIntro;
    }

    public void setComboCardIntro(String comboCardIntro) {
        this.comboCardIntro = comboCardIntro == null ? null : comboCardIntro.trim();
    }

    public Short getComboCardCheckStatus() {
        return comboCardCheckStatus;
    }

    public void setComboCardCheckStatus(Short comboCardCheckStatus) {
        this.comboCardCheckStatus = comboCardCheckStatus;
    }

    public Integer getComboCardTotalCopies() {
        return comboCardTotalCopies;
    }

    public void setComboCardTotalCopies(Integer comboCardTotalCopies) {
        this.comboCardTotalCopies = comboCardTotalCopies;
    }

    public Integer getComboCardSurplusCopies() {
        return comboCardSurplusCopies;
    }

    public void setComboCardSurplusCopies(Integer comboCardSurplusCopies) {
        this.comboCardSurplusCopies = comboCardSurplusCopies;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(String begintime) {
        try
        {
            this.begintime = sdf.parse(begintime);
        }
        catch (ParseException e)
        {
            e.printStackTrace();
        }
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        try
        {
            this.endtime = sdf.parse(endtime);
        }
        catch (ParseException e)
        {
            e.printStackTrace();
        }
    }

    /**
     * @return the comboCardOrignalPrice
     */
    public Float getComboCardOrignalPrice()
    {
        return comboCardOrignalPrice;
    }

    /**
     * @param comboCardOrignalPrice the comboCardOrignalPrice to set
     */
    public void setComboCardOrignalPrice(Float comboCardOrignalPrice)
    {
        this.comboCardOrignalPrice = comboCardOrignalPrice;
    }

    /**
     * @return the comboCardFavorablePrice
     */
    public Float getComboCardFavorablePrice()
    {
        return comboCardFavorablePrice;
    }

    /**
     * @param comboCardFavorablePrice the comboCardFavorablePrice to set
     */
    public void setComboCardFavorablePrice(Float comboCardFavorablePrice)
    {
        this.comboCardFavorablePrice = comboCardFavorablePrice;
    }

    /**
     * @return the comboCardSalePrice
     */
    public Float getComboCardSalePrice()
    {
        return comboCardSalePrice;
    }

    /**
     * @param comboCardSalePrice the comboCardSalePrice to set
     */
    public void setComboCardSalePrice(Float comboCardSalePrice)
    {
        this.comboCardSalePrice = comboCardSalePrice;
    }

    /**
     * @return the totalDiscount
     */
    public Float getTotalDiscount()
    {
        return totalDiscount;
    }

    /**
     * @param totalDiscount the totalDiscount to set
     */
    public void setTotalDiscount(Float totalDiscount)
    {
        this.totalDiscount = totalDiscount;
    }

    /**
     * @return the comboCardRaisePriceRate
     */
    public Float getComboCardRaisePriceRate()
    {
        return comboCardRaisePriceRate;
    }

    /**
     * @param comboCardRaisePriceRate the comboCardRaisePriceRate to set
     */
    public void setComboCardRaisePriceRate(Float comboCardRaisePriceRate)
    {
        this.comboCardRaisePriceRate = comboCardRaisePriceRate;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * @return the createtime
     */
    public Date getCreatetime()
    {
        return createtime;
    }

    /**
     * @param createtime the createtime to set
     */
    public void setCreatetime(Date createtime)
    {
        this.createtime = createtime;
    }

    /**
     * @return the comboCardProductDetails
     */
    public List<ComboCardProductDetail> getComboCardProductDetails()
    {
        return comboCardProductDetails;
    }

    /**
     * @param comboCardProductDetails the comboCardProductDetails to set
     */
    public void setComboCardProductDetails(List<ComboCardProductDetail> comboCardProductDetails)
    {
        this.comboCardProductDetails = comboCardProductDetails;
    }

    /* (non-Javadoc)
     * Description: <br/> 
     *
     * @return 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "ComboCard [comboCardId=" + comboCardId + ", comboCardName=" + comboCardName + ", comboCardIntro="
                + comboCardIntro + ", comboCardCheckStatus=" + comboCardCheckStatus + ", comboCardTotalCopies="
                + comboCardTotalCopies + ", comboCardSurplusCopies=" + comboCardSurplusCopies + ", begintime="
                + begintime + ", endtime=" + endtime + ", comboCardOrignalPrice=" + comboCardOrignalPrice
                + ", comboCardFavorablePrice=" + comboCardFavorablePrice + ", comboCardSalePrice=" + comboCardSalePrice
                + ", totalDiscount=" + totalDiscount + ", comboCardRaisePriceRate=" + comboCardRaisePriceRate
                + ", isDelete=" + isDelete + ", createtime=" + createtime + ", comboCardProductDetails=" + comboCardProductDetails + "]";
    }

}